home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / BIN / _Q2EXE_.BAT next >
DOS Batch File  |  1997-07-09  |  1KB  |  75 lines

  1. @echo off
  2. set QEo=
  3. if "%QEc%"=="" goto dont
  4. if "%QEx%"=="" goto dont
  5. if "%1"=="" goto usage
  6. if exist *.tmp del *.tmp
  7. set QCo=
  8. set QCf=
  9. set QCl=
  10. goto top
  11.  
  12. :dont
  13. echo This BAT file is used internally by QLIB.  Do not use directly!
  14. goto end
  15.  
  16. :top
  17. if "%1"=="/d" goto addopt
  18. if "%1"=="/p" goto addopt
  19. if "%1"=="/wx" goto addopt
  20. if "%1"=="/b" goto addopt
  21. if "%1"=="/w" goto addopt
  22. if "%1"=="/c" goto addopt
  23. goto cont
  24. :addopt
  25. set QCo=%QCo% %1
  26. shift
  27. goto top
  28. :cont
  29. if exist %1.obj del %1.obj
  30. if exist %1.exe del %1.exe
  31.  
  32. call %QEc%2obj %1
  33. echo.
  34. if not exist %1.obj goto end
  35. set QCf=%1
  36. shift
  37. :top2
  38. set QCl=%QCl% %1
  39. shift
  40. if not "%1"=="" goto top2
  41.  
  42. call qlink %QCo% %QCf% %QCf%.obj %QCl%
  43.  
  44. if not exist %QCf%.exe goto end
  45.  
  46. goto done
  47.  
  48. :usage
  49. echo Usage : %QEc%2EXE [options] file file(s)
  50. echo   file = file to compile (do not give .%QEx% extension)
  51. echo   file(s) = files to linked together (full filenames)  [OBJs and LIBs]
  52. echo   DOS Extender options:
  53. echo    /p = use PMODE/W DOS extender (default)
  54. echo    /d = use DOS/4GW DOS extender
  55. echo    /wx = use WDOSX DOS extender
  56. echo   Math LIBs options:
  57. echo    /b = use Borland/VisC Math LIBs %QEmb%
  58. echo    /w = use Watcom Math LIBs %QEmw%
  59. echo   Other options:
  60. echo    /c = use PMWLITE to compress EXE
  61. echo.         
  62.  
  63. :done
  64. if exist *.tmp del *.tmp
  65.  
  66. :end
  67. set QCo=
  68. set QCf=
  69. set QCl=
  70. set QEc=
  71. set QEx=
  72. set QEmb=
  73. set QEmw=
  74.  
  75.